package com.tsintergy.tmosguide.trade.serviceimpl.configure;

import com.tsieframework.boot.autoconfigure.data.hibernate.jpa.config.GenericRepositoryConfigurer;
import com.tsieframework.boot.autoconfigure.data.hibernate.jpa.config.GenericRepositoryPackageRegistry;
import com.tsintergy.tmosguide.trade.PackageInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * Service模块配置，通常这里负责注入非DAO、Service的其他类型的Bean定义，方便统一查找
 * </p>
 *
 * @author longyz@tsintergy.com
 * @date 2025-07-12 15:39:32
 */
@Configuration
public class TradeServiceBaseConfig implements GenericRepositoryConfigurer {

    private Logger logger = LoggerFactory.getLogger(TradeServiceBaseConfig.class);

    public TradeServiceBaseConfig() {
        logger.debug("初始化" + getClass());
    }

    @Override
    public void addEntityPackage(GenericRepositoryPackageRegistry registry) {
        //注册泛化DO所在的包路径
        registry.register(PackageInfo.class);
    }
}
